package com.ll.domain.shop.base.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ll.dal.mapper.GoodsMapper;
import com.ll.dal.mapper.ShopMapper;
import com.ll.dal.po.GoodsPO;
import com.ll.dal.po.ShopPO;
import com.ll.domain.shop.base.GoodsBaseService;
import com.ll.domain.shop.base.ShopBaseService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author shzz
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class ShopBaseServiceImpl extends ServiceImpl<ShopMapper, ShopPO> implements ShopBaseService {

    private final ShopMapper shopMapper;


    @Override
    public void updateLogo(Long id, String logs) {
        ShopPO shopPO = new ShopPO();
        shopPO.setId(id);
        shopPO.setLogo(logs);
        shopMapper.updateById(shopPO);
    }

    @Override
    public void updateLogo1(Long id, String logs) {
        ShopPO shopPO = new ShopPO();
        shopPO.setId(id);
        shopPO.setLogo1(logs);
        shopMapper.updateById(shopPO);
    }
}
